<?php
/* Smarty version 3.1.30, created on 2017-10-31 05:20:31
  from "C:\ComsenzEXP\wwwroot\Moodblog\admin\html\settings.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_59f8081fd6ed79_54223278',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '1df39e8288faad6e8b9e9a9d99286a92f94027f2' => 
    array (
      0 => 'C:\\ComsenzEXP\\wwwroot\\Moodblog\\admin\\html\\settings.html',
      1 => 1509427228,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_59f8081fd6ed79_54223278 (Smarty_Internal_Template $_smarty_tpl) {
?>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<title><?php echo $_smarty_tpl->tpl_vars['sitetitle']->value;?>
</title>
	<link rel="stylesheet" type="text/css" href="./html/common.css" />
	<?php echo '<script'; ?>
 type="text/javascript" src="./html/js/core.js"><?php echo '</script'; ?>
>
</head>
<div class="content">
	<div class = "setTitle">通用设置</div>
	<form action="trans.php?action=settings" method="post">
	<table class="setTable">
		<tbody>
			<tr>
				<td><b>网站地址</b><br>这里填写网站的地址，用于导航链接等内容<br>如：http://localhost/MoodBlog/</td><td><input name="url" class="setInput"/ value="<?php if ($_smarty_tpl->tpl_vars['configs']->value['url']) {
echo $_smarty_tpl->tpl_vars['configs']->value['url'];
}?>"></td>
			</tr>
			<tr>
				<td><b>网站标题</b></td><td><input name="title" class="setInput" value="<?php if ($_smarty_tpl->tpl_vars['configs']->value['title']) {
echo $_smarty_tpl->tpl_vars['configs']->value['title'];
}?>"></input></td>
			</tr>
			<tr>
				<td><b>网站副标题</b><br>在前台logo下显示的文字</td><td><input name="addtitle" class="setInput" value="<?php if ($_smarty_tpl->tpl_vars['configs']->value['addtitle']) {
echo $_smarty_tpl->tpl_vars['configs']->value['addtitle'];
}?>"></input></td>
			</tr>
			<tr>
				<td><b>LOGO下方文字</b></td><td><input name="logotext" class="setInput" value="<?php if ($_smarty_tpl->tpl_vars['configs']->value['logotext']) {
echo $_smarty_tpl->tpl_vars['configs']->value['logotext'];
}?>"></input></td>
			</tr>
			<tr>
				<td><b>底部信息</b><br>在网站前台底部显示的内容，可以填写版权、备案号等信息</td><td><textarea name="footext"class="setInput setText" ><?php if ($_smarty_tpl->tpl_vars['configs']->value['footext']) {
echo $_smarty_tpl->tpl_vars['configs']->value['footext'];
}?></textarea></td>
			</tr>
			<tr>
				<td><b>首页文章数目</b></td><td><input name="indexnum" class="setInput" value="<?php if ($_smarty_tpl->tpl_vars['configs']->value['indexnum']) {
echo $_smarty_tpl->tpl_vars['configs']->value['indexnum'];
}?>"/></td>
			</tr>
			<tr>
				<td><b>列表页文章数目</b></td><td><input name="listnum" class="setInput" value="<?php if ($_smarty_tpl->tpl_vars['configs']->value['listnum']) {
echo $_smarty_tpl->tpl_vars['configs']->value['listnum'];
}?>"></input></td>
			</tr>
			<tr>
				<td><b>翻页条显示最大翻页数目</b></td><td><input name="maxpage" class="setInput" value="<?php if ($_smarty_tpl->tpl_vars['configs']->value['maxpage']) {
echo $_smarty_tpl->tpl_vars['configs']->value['maxpage'];
}?>"></input></td>
			</tr>
			<tr>
				<td>每页最大评论数</td><td><input name="maxremark" class="setInput" value="<?php if ($_smarty_tpl->tpl_vars['configs']->value['maxremark']) {
echo $_smarty_tpl->tpl_vars['configs']->value['maxremark'];
}?>"></input></td>
			</tr>
		</tbody>
	</table>
	<div class="adminSub">
		<input type="submit" value="提交">
	</div>
	</form>

</div>
<div class="content">
	<div class = "setTitle">导航设置</div>
	<table class="setTable">
	<thead>
		<tr>
			<th>顺序</th>
			<th>名字</th>
			<th>地址</th>
			<th>显示</th>
			<th>管理</th>
		</tr>
	</thead>
	<tbody>
			<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['topmenu']->value, 'value');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['value']->value) {
?>
				<tr>
				<td><input type="text" value="<?php echo $_smarty_tpl->tpl_vars['value']->value['index'];?>
"></td>
				<td><input type="text" value="<?php echo $_smarty_tpl->tpl_vars['value']->value['title'];?>
"></td>
				<td><input type="text" value="<?php echo $_smarty_tpl->tpl_vars['value']->value['url'];?>
"></td>
				<td>
					<select>
					<option value="0" <?php if ($_smarty_tpl->tpl_vars['value']->value['state'] == 0) {?>selected<?php }?>>显示</option>
					<option value="1" <?php if ($_smarty_tpl->tpl_vars['value']->value['state'] == 1) {?>selected<?php }?>>隐藏</option>
					</section>
				</td>
				<td><input style="display:none" type="text" value="<?php echo $_smarty_tpl->tpl_vars['value']->value['id'];?>
"><a href="trans.php?action=delmenu&&id=<?php echo $_smarty_tpl->tpl_vars['value']->value['id'];?>
">删除</a></td>
				</tr>			
			<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

			<tr>
				<td><input type="text"></td>
				<td><input type="text"></td>
				<td><input type="text"></td>
				<td>
					<select>
					<option value="0" >显示</option>
					<option value="1" >隐藏</option>
					</section>
				</td>
				<td></td>
			</tr>
	</tbody>
	<tfoot>
		<tr>
		<td colspan="4" scope="col">
			<a id="add" href="" onclick="addTable(this,event)">+添加导航</a>
		</td>
		<div class="adminSub">
			<td><input type="submit" style="width:40px" value="提交" onclick="subMenuSet(this)"></td>
		</div>	
		</tr>
	</tfoot>
	</table>
</div>
<?php }
}
